<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: haocongshun
  Date: 2016/10/11
  Time: 20:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>${requestScope.title}</title>
    <meta name="keywords" content="个人博客模板,博客模板" />
    <meta name="description" content="寻梦主题的个人博客模板，优雅、稳重、大气,低调。" />
    <link href="${CTPATH}/css/base.css" rel="stylesheet">
    <link href="${CTPATH}/css/index.css" rel="stylesheet">
    <link href="${CTPATH}/css/style.css" rel="stylesheet">
    <%--<link href="<%=request.getContextPath()%>/static/css/bootstrap.min.css" rel='stylesheet' type='text/css' />--%>
    <!--[if lt IE 9]>
    <script src="${CTPATH}/js/modernizr.js"></script>
    <![endif]-->
</head>
<body>
<header>
    <div id="logo"><a href="${URLIndex}"></a></div>
    <nav class="topnav" id="topnav">
        <a href="${URLIndex}"><span>首页</span><span class="en">Protal</span></a>
        <a href="${URLUser}"><span>关于我</span><span class="en">About</span></a>
        <c:forEach items="${menus}" var="menu">
            <a href="${menu.url}"><span>${menu.title}</span><span class="en">${menu.title}</span></a>
        </c:forEach>
    </nav>
    </nav>
</header>
<div class="banner">
    <section class="box">
        <ul class="texts">
            <p>打了死结的青春，捆死一颗苍白绝望的灵魂。</p>
            <p>为自己掘一个坟墓来葬心，红尘一梦，不再追寻。</p>
            <p>加了锁的青春，不会再因谁而推开心门。</p>
        </ul>
        <div class="avatar"><a href="#"><span>杨青</span></a> </div>
    </section>
</div>
<article>
    <h2 class="title_tj">
        <p>文章<span>推荐</span></p>
    </h2>
    <div class="bloglist left">
        <c:forEach var="content" items="${contents}">
        <h3>${content.title}</h3>
        <figure><img src="${content.thumbnail}"></figure>
        <ul class="nlist">
                ${content.summary}
            <a title="阅读全文" href="${content.url}" target="_blank" class="readmore">阅读全文>></a>
        </ul>
            <p class="dateview">
                <span>${content.createDate}</span>
                <span>作者：${content.author}</span>
                <span>分类：
                    <c:forEach var="taxonomy" items="${content.taxonomys}">
                        [<a href="${taxonomy.key}">${taxonomy.value}</a>]
                    </c:forEach>
                </span>
            </p>
        </c:forEach>

        <div class="page">
            <c:forEach items="${pages}" var="page">
                <c:if test="${page.status eq 'active'}">
                    <b>${page.num}</b>
                </c:if>
                <c:if test="${empty page.status}">
                    <a href="${page.url}" class="${page.status}">${page.num}</a>
                </c:if>
            </c:forEach>
        </div>
    </div>



    <aside class="right">
        <div class="weather">
            <form method="post" action="${URLSearch}">
                <input name="search" class="input-sm" placeholder="搜索内容"/>
                <br>
                <button type="submit" class="btn-default" style="width: 92%;margin-top: 10px;">搜索</button>
            </form>
        </div>
        <div class="news">
            <h3>
                <p>最新<span>文章</span></p>
            </h3>
            <ul class="rank">
                <c:forEach items="${contentsRecommend}" var="content">
                    <li><a href="${content.url}" target="_blank">${content.title}</a></li>
                </c:forEach>
            </ul>
            <h3 class="ph">
                <p>点击<span>排行</span></p>
            </h3>
            <ul class="paih">
                <c:forEach items="${contentsTop10}" var="content"  begin="0" end="4">
                    <li><a href="${content.url}" target="_blank">${content.title}</a></li>
                </c:forEach>
            </ul>

        </div>
    </aside>
</article>
<footer>
    <p>Design by DanceSmile <a href="http://www.miitbeian.gov.cn/" target="_blank">蜀ICP备11002373号-1</a> <a href="/">网站统计</a></p>
</footer>
<script src="js/silder.js"></script>
</body>
</html>
